package com.yjzx.util.generate;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author guozhi
 * @date 2024/10/23
 * @description GenerateSwitch
 */

@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.FIELD)
public @interface EnumGenerateByFieldMethod {
    String methodName() default "getBy${fieldName}";
    DefaultValueEnum defaultValue() default DefaultValueEnum.ERROR_VALUE;

}
